package com.example.project.projectspringcloud.dao.order;

import com.example.project.projectspringcloud.dao.BaseMapper;
import com.example.project.projectspringcloud.entity.order.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 订单详情Mapper
 */
@Mapper
@Repository
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {

    /**
     * 通过 order_id 删除
     *
     * @param orderIds
     * @return
     */
    int deleteByOrderIdArray(@Param("orderIds") Integer[] orderIds);
}